package cn.iocoder.yudao.module.product.controller.admin.customermessage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 客服消息新增/修改 Request VO")
@Data
public class CustomerMessageSaveReqVO {

    @Schema(description = "客服消息编号，主键自增", requiredMode = Schema.RequiredMode.REQUIRED, example = "8272")
    private Long id;

    @Schema(description = "发送人的用户编号，关联 MemberUserDO 的 id 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22452")
    @NotNull(message = "发送人的用户编号，关联 MemberUserDO 的 id 编号不能为空")
    private Long userId;

    @Schema(description = "评价人名称", example = "王五")
    private String userNickname;

    @Schema(description = "评价人头像")
    private String userAvatar;

    @Schema(description = "商品 SPU 编号，关联 ProductSpuDO 的 id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3166")
    @NotNull(message = "商品 SPU 编号，关联 ProductSpuDO 的 id不能为空")
    private Long spuId;

    @Schema(description = "商品 SPU 名称", example = "李四")
    private String spuName;

    @Schema(description = "是否可见，true:显示false:隐藏")
    private Boolean visible;

    @Schema(description = "消息内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "消息内容不能为空")
    private String content;

    @Schema(description = "消息类型", example = "2")
    private Boolean contentType;

    @Schema(description = "发送类型(1-用户；2-系统；3-客服)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "发送类型(1-用户；2-系统；3-客服)不能为空")
    private Boolean senderType;

    @Schema(description = "回复管理员编号，关联 AdminUserDO 的 id 编号", example = "30542")
    private Long replyUserId;

    @Schema(description = "回复管理员名称", example = "李四")
    private String replyUserName;

    @Schema(description = "消息发送时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "消息发送时间不能为空")
    private LocalDateTime sendTime;

}